﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Unity.Entities;
using Unity.Mathematics;

public class UnitControll : MonoBehaviour
{
    /*public float m_Level;*/

    void Start()
    {
        /*m_Level = 2;*/


        EntityManager m_EntityManager = World.DefaultGameObjectInjectionWorld.EntityManager;
        Entity m_UnitDataEntity = m_EntityManager.CreateEntity(typeof(UnitDataComponent));
        m_EntityManager.SetComponentData<UnitDataComponent>(m_UnitDataEntity, new UnitDataComponent() { Level = 2 });
    }
    void Update()
    {

        /*m_Level += math.exp10(math.sqrt(m_Level));*/
    }


}
